home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 January / maximum-cd-2001-01.iso / Hard Disk / Test-Run / Test-Run 210.exe / Control / Proceed.bat < prev    next >
Encoding:
DOS Batch File  |  1999-08-10  |  4.1 KB  |  99 lines

  1. @echo off
  2.  
  3. if not exist c:\windows\command\*.* nocmd.bat
  4. if not exist c:\windows\command\*.* goto :end
  5. if not %windir%==C:\WINDOWS goto :Not Right
  6. if not exist c:\windows\system.dat goto :Not Right
  7. if not exist c:\windows\user.dat goto :Not Right
  8.  
  9. if not exist c:\windows\command\attrib.exe goto :filechek
  10. if not exist c:\windows\command\deltree.exe goto :filechek
  11. if not exist c:\windows\command\xcopy.exe goto :filechek
  12. if not exist c:\windows\command\start.exe goto :filechek
  13. if not exist c:\windows\command\choice.com goto :filechek
  14. if not exist c:\windows\regedit.exe goto :filechek
  15. if not exist c:\windows\notepad.exe goto :filechek
  16. if not exist c:\windows\write.exe goto :filechek
  17. goto :Proceed
  18.  
  19. :filechek
  20. echo.
  21. echo.
  22. echo         ╔════════════════════════════════════════════════════════════╗
  23. echo         ║                *** INSTALLATION ALERT ***                  ║      
  24. echo         ║ Setup has detected that there are some missing files from  ║
  25. echo         ║ your windows installation. The Test-Run program relies on  ║
  26. echo         ║ those files to be able to operate safely, and it is vital  ║ 
  27. echo         ║ that they have been correctly installed with Windows. The  ║
  28. echo         ║ list of essential files used by Test-Run program is given  ║
  29. echo         ║ below. Installation has been aborted.  No change has been  ║ 
  30. echo         ║ made to your computer.                                     ║
  31. echo         ║ ┌────────────────────────────────────────────────────────┐ ║ 
  32. echo         ║ │    ONE OR MORE OF THE FILES LISTED BELOW IS MISSING!   │ ║
  33. echo         ║ │                                                        │ ║
  34. echo         ║ │ C:\WINDOWS\COMMAND\..ATTRIB.EXE, START.EXE, XCOPY.EXE,│ ║
  35. echo         ║ │                                DELTREE.EXE, CHOICE.COM.│ ║
  36. echo         ║ │ C:\WINDOWS\.......REGEDIT.EXE, NOTEPAD.EXE, WRITE.EXE.│ ║
  37. echo         ║ └────────────────────────────────────────────────────────┘ ║
  38. echo         ╚════════════════════════════════════════════════════════════╝
  39. echo.
  40. echo.
  41. echo.
  42. pause
  43. goto :end
  44.  
  45. :Not Right
  46. start /max Notright.bat
  47. exit
  48.  
  49. :Proceed
  50. if exist c:\windows\command\TR-by-BB\nul deltree /y c:\windows\command\TR-by-BB
  51. md c:\windows\command\"TR-by-BB"
  52. md c:\windows\command\"TR-by-BB\Start Menu"
  53. if exist "c:\windows\start menu\programs\Test-Run by BB"\nul deltree /y "c:\windows\start menu\programs\Test-Run by BB"
  54. md "c:\windows\start menu\programs\Test-Run by BB"
  55. if exist "c:\windows\desktop\Test-Run by BB.lnk" del "c:\windows\desktop\Test-Run by BB.lnk"
  56. cls
  57. echo.
  58. echo          ╔════════════════════════════════════════════════════════════╗
  59. echo          ║              NOW LOADING FILES - PLEASE WAIT               ║
  60. echo          ╚════════════════════════════════════════════════════════════╝
  61. echo.
  62. xcopy tr\*.* c:\windows\command\"TR-by-BB" /s/q
  63. xcopy cmd\*.* c:\windows\command /q
  64. xcopy "Strt Men"\*.* "c:\windows\start menu\programs\Test-Run by BB" /q
  65. xcopy "Strt Men"\*.* "c:\windows\command\TR-by-BB\Start Menu" /q
  66. xcopy dsktop\*.* c:\windows\desktop /q
  67. attrib c:\windows\command\TR-by-BB\Info.wri +r
  68. attrib c:\windows\command\TR-by-BB\Readme.txt +r
  69. attrib c:\windows\command\TR-by-BB\Shortcut.txt +r
  70. attrib c:\windows\command\TR-by-BB\on.txt +r
  71. attrib c:\windows\command\TR-by-BB\off.txt +r
  72. attrib c:\windows\command\TR-by-BB\Fixshort.txt +r
  73.  
  74. :exit
  75. cls
  76. echo.
  77. echo.
  78. echo.
  79. echo.
  80. echo          ╔════════════════════════════════════════════════════════════╗
  81. echo          ║                                                            ║
  82. echo          ║        Installation of TEST-RUN by BB is complete.         ║
  83. echo          ║                                                            ║
  84. echo          ║ Thank you for participating. Regards... Bernie Madigan(BB) ║
  85. echo          ║                                                            ║
  86. echo          ╚════════════════════════════════════════════════════════════╝
  87. echo.
  88. echo.
  89. choice .              Do you want to read TEST-RUN Info now  
  90. if errorlevel 2 goto :cleanit
  91. if errorlevel 1 start /max write c:\windows\command\TR-by-BB\Info.wri
  92.  
  93. :cleanit
  94. del ..\setup.pif
  95. deltree /y ..\Control
  96. exit
  97.  
  98. :end
  99. exit